home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_5.lha
/
7_5
/
7_5a2_line.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
495b
|
26 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Exercise 7.5
/ Rectangle derived from a line.
/ The data is private but available
/ to class rectangle.
lass line : public shape
point w, e;
friend class rectangle;
ublic:
point north();
point east();
point south();
point west();
void move(int a, int b);
void draw();
line(point a, point b);
line(point a, int l);
;